#include <bits/stdc++.h>
using namespace std;

typedef long long LL;

const int N = 2e5+5;

int a[N], n;

int main(int argc, char const *argv[])
{
	int t;
	// cin >> t;
	scanf("%d", &t);
	for (int kk=0; kk<t; ++kk)
	{
		scanf("%d", &n);
		for (int i=0; i<n; ++i)
			scanf("%d", &a[i]);
		bool fd = false;
		for (int i=0; i<n-1; ++i)
			if (abs(a[i] - a[i+1]) >= 2)
			{
				fd = true;
				puts("YES");
				printf("%d %d\n", i+1, i+2);
				break;
			}
		if (!fd) puts("NO");
	}
	return 0;
}